<!DOCTYPE html>
<html>
<head>
    <title>{$site_name}</title>
    <meta name="keywords" content="{$site_seo_keywords}" />
    <meta name="description" content="{$site_seo_description}">
    <meta name="author" content="ThinkCMF">
    <tc_include file="Public:head" />
</head>
<body class="body-white" id="top">
    <tc_include file="Public:nav" />
    <div class="container tc-main">
        <div class="row">
            <div class="span3">
                <tc_include file="Public:usernav" />
            </div>
            <div class="span9">
                <div class="tabs">
                    <ul class="nav nav-tabs" style="margin-left: -50px;">
                        <li class="active" style="font-size: 17px;font-weight: 600;margin-left: 100px;"><a href="#one" style="color: #000000;" data-toggle="tab"> 我的收藏</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="one">
                            <!-- <table class="table table-bordered table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>标题</th>
                                        <th>描述</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <foreach name="favorites" item="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.title}</td>
                                        <td>{$vo.description}</td>
                                        <td>
                                            <a href="{$vo.url}">查看</a> | <a class="js-ajax-dialog-btn" href="{:U('user/favorite/delete_favorite',array('id'=>$vo['id']))}" data-msg="您确定要取消收藏吗？" data-ok="" data-cacel="取消">取消收藏</a>
                                        </td>
                                    </tr>
                                    </foreach>
                                </tbody>
                            </table> -->
                            <foreach name="favorites" item="vo">
                                <div style="width: 160px;height: 95px;border-bottom: 2px solid #aeaeae;width: 100%;margin-top: 5px;">
                                    <!--<img style="width: 160px;height: 100px;float: left;">-->
                                    <php>
                                        $smeta=json_decode($vo['smeta'], true);      
                                        $createtime= date("Y-m-d H:i",$vo['createtime']);                                 
                                    </php>
                                    <div style="width:15%; float:left;">
                                        <if condition="!empty($smeta['thumb'])">
                                            <div class="item-image" style="max-height:80px; overflow:hidden;width:100%;margin-top:4px">
                                               
                                                    <img src="{:sp_get_asset_upload_path($smeta['thumb'])}"
                                                         class="img-responsive" alt="{$voo.post_title}">
                                               
                                            </div>
                                            <else />
                                        </if>
                                    </div>
                                    <div style="float: left;margin-left: 10px;">
                                        <h2 class="fontmsyhbd" style="font-size:17px">{$vo.title}</h2>
                                        收藏于{$createtime}
                                        <!--<a style="color: #1367ef;font-size: 10px;">文/sdf</a>-->
                                        <a style="color: #1367ef;margin-left: 50px;" href="{$vo.url}">查看</a> <a style="color: #1367ef;margin-left: 50px;" class="js-ajax-dialog-btn" href="{:U('user/favorite/delete_favorite',array('id'=>$vo['id']))}" data-msg="您确定要取消收藏吗？" data-ok="" data-cacel="取消">取消收藏</a>
                                    </div>
                                </div>
                            </foreach>
                            <!--<div style="width:110px;height: 30px;border-radius: 15px;border: 1px solid #C8161D; color: #C8161D;font-size: 15px;text-align: center;
                            line-height: 30px;font-weight: 400;margin-left: 350px; margin-top: 35px;" class="js-infinite-scroll-loading text-center">更多收藏</div>-->
                            <div class="pagination"><ul>{$page}</ul></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /container -->
    <tc_include file="Public:footer" />
    <tc_include file="Public:scripts" />
</body>
</html>